/*
{
"状态":1,
"名称":"更新-用户密码信息",
"作者":"陈泽椿",
"创建时间":"2018-07-16",
"功能":"更新-用户密码信息",
"log": [
	{"date":"06-01" , "dev" :"hzhh" , "content" : ""}
]
}
*/
declare @psw varchar(100) ,@user_key int
set @psw = '{psw}'
set @user_key = '{user_key}'

--校验信息
if isnull(@psw,'')=''
begin 
	RAISERROR ('SQL:密码不允许为空', 16 ,1 ) ; 
	return 
end 

update [dbo].[y_user] set
[password] = @psw ,
[update_time] = getdate()
where [user_key] = @user_key
